package cn.hou.java.designpattern._04builder;

//设计师,指挥或者调用工程队如何建造房子
public class Director {

	//设计师需要一个工程队的属性
	private HouseBuilder builder;
	
	//构造器时指定一个工程队
	public Director(HouseBuilder builder) {
		this.builder=builder;
	}
	
	//设计师建造房子,只指挥工程队,不获取
	public void makeHouse(){
		builder.buildDoor();
		builder.buildFloor();
		builder.buildWall();
	};

}
